package com.example.studentknowledgesys.service.impl;

import com.example.studentknowledgesys.dao.TagArticleMapper;
import com.example.studentknowledgesys.dto.TagArticleCountDTO;
import com.example.studentknowledgesys.service.TagArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("tagArticleService")
public class TagArticleServiceImpl implements TagArticleService {

    @Autowired
    private TagArticleMapper tagArticleMapper;

    @Override
    public List<TagArticleCountDTO> getArticleCountByTag() {
        return tagArticleMapper.getArticleCountByTag();
    }
}